import { createVNode } from 'vue';
import * as icons from '@ant-design/icons-vue';

const createIcon = (props) => {
  const { icon } = props;
  return createVNode(icons[icon]);
};

export default createIcon;
